package com.twu.biblioteca;

/**
 * Created by thoughtworker on 1/15/14.
 */
public class LibraryBook {
    private String title;
    private boolean availability;
    private String owner = "library";

    public LibraryBook(String title) {
        this.title = title;
        availability = true;
    }

    public String toString(){
        return title;
    }

    public boolean isAvailable() {
        return availability;
    }

    public void setAvailability(boolean availability) {
        this.availability = availability;
    }

    public void makeUnavailable() {
        availability = false;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getOwner() {
        return owner;
    }

    public void makeAvailable() {
        availability = true;
    }
}
